﻿using RoboContainer.Core;
using TimeMachine.Engine.Analytics;

namespace TimeMachine.Engine.Agents
{
	public class InfoAgent
	{
		private readonly IProjectSettings projectSettings;

		public InfoAgent(IProjectSettings projectSettings)
		{
			this.projectSettings = projectSettings;
		}

		public ProjectInfo GetInfo()
		{
			var container = new Container(c => c.ForPlugin<IProjectSettings>().UseInstance(projectSettings));
			return container.Get<IProjectInfoProvider>().GetInfo();
		}
	}
}